{{useCss "/app-pages/css/user/order.scss", (["/user/__basename__.html","/user/"]) }}
<div class="order">
    <div class="nav">
        <div class="nav-li focus">所有订单</div>
    </div>
    <hr />
    <div class="orders">
        {{#each user.achs}}
        <user_ach></user_ach>
        {{/each}}
    </div>

    <pagination2 id="turn-page" page-info="$Cache.user.order.achs.page_info"></pagination2>
</div>

<xmp type="tag" name="user_ach">
    <div class="order-box">
        <div class="title">
            <a href="/pay-beta.html#?ach_id={{_id}}">订单号：{{_id}}</a>（商家：{{info.bus_id}}）
        </div>
        <div class="detail">
            <div class="goods">
                {{#each info.goods_info}}
                <div class="goods-item">
                    <!-- w:100px h:100px -->
                    <div class="goods-image">
                        <href style="color:#1ba1e2;" to="/goods_details/details.html?id={{goods._id}}">
                            <img bind-src="{{goods.preview_img_url}}?imageView/1/w/36/h/36">
                        </href>
                    </div>
                    <div class="goods-info-item">
                        <href to="/goods_details/comments.html?id={{goods._id}}">{{goods.goods_name}}</href>（X {{num}}）</div>
                </div>
                {{/each}}
            </div>
            <div class="price">
                <div class="price-item first">总花费额：{{cash}}</div>
                <div class="price-item">下单时间：{{#Time create_time,'YYYY-MM-DD HH:mm:ss'}}</div>
            </div>
            <div class="method_box">
                {{#> "user_ach_controller"}}
            </div>
        </div>
    </div>
</xmp>
